/*
 * HttpHeader.h
 *
 *  Created on: 29-11-2011
 *      Author: cristian
 */

#ifndef HTTPHEADER_H_
#define HTTPHEADER_H_

#include <sstream>
#include <string>
#include "Logger.h"
using namespace std;

class HttpHeader {

private:

//	GET /lcoalhost.rss HTTP/1.1
//	Host: localhost:9999
//	Connection: keep-alive
//	User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/17.0.942.0 Safari/535.8
//	Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
//	Accept-Encoding: gzip,deflate,sdch
//	Accept-Language: en-US,en;q=0.8
//	Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

	Logger* logger;

	string Get;
	string Host;
	string Connection;
	string UserAgent;
	string Accept;
	string AcceptEncoding;
	string AcceptLanguage;
	string AcceptCharset;

	string* GetValue;
	string* HostValue;
	string* ConnectionValue;
	string* UserAgentValue;
	string* AcceptValue;
	string* AcceptEncodingValue;
	string* AcceptLanguageValue;
	string* AcceptCharsetValue;


public:

	HttpHeader(string *get = NULL, string *host = NULL);
	virtual ~HttpHeader();
    string *getGetValue() const;
    string *getHostValue() const;
    void setGetValue(string *getValue);
    void setHostValue(string *hostValue);
    string* toString();


};

#endif /* HTTPHEADER_H_ */
